package com.yuanrui.subject.domain.convert;

import com.yuanrui.subject.domain.entity.SubjectAnswerBO;
import com.yuanrui.subject.domain.entity.SubjectInfoBO;
import com.yuanrui.subject.infra.basic.entity.SubjectBrief;
import com.yuanrui.subject.infra.basic.entity.SubjectJudge;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目标签表(SubjectLabel)转换器
 */
@Mapper
public interface SubjectJudgeConvert {
    SubjectJudgeConvert INSTANCE = Mappers.getMapper(SubjectJudgeConvert.class);

    //BO转Entity
    SubjectJudge convertToEntity(SubjectAnswerBO subjectAnswerBO);

    //Entity转BO
    SubjectAnswerBO convertToInfoBo(SubjectJudge subjectJudge);

    //InfoList转AnswerBoList
    List<SubjectAnswerBO> convertToAnswerBo(List<SubjectJudge> subjectJudgeList);
}
